/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.alxbrendmaquinarias.controller.operation;

import com.alxbrendmaquinarias.model.AccountForPay;
import com.alxbrendmaquinarias.service.AccountForPayService;
import java.io.Serializable;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 *
 * @author Max
 */
@Controller
public class AccountForPayController implements Serializable{
    
    @Autowired
    AccountForPayService accountForPayService;
    
    private List<AccountForPay> listAccountForPay;
    
    public void initValuesForAccountForPay() {
        listAccountForPay = null;
    }

    public List<AccountForPay> getListAccountForPay() throws Exception {
        if(listAccountForPay == null) {
            listAccountForPay = accountForPayService.list("AccountForPay.findAll");
        }
        return listAccountForPay;
    }

    public void setListAccountForPay(List<AccountForPay> listAccountForPay) {
        this.listAccountForPay = listAccountForPay;
    }
    
    
    
}
